td{
    border-left:1px solid #000;
    border-top:1px solid #000;
    vertical-align: baseline;
    text-align: center;
    display: table-cell;
}
table{
    display: table;
    border-right:1px solid #000;
    border-bottom:1px solid #000;
}